import request from '@/utils/request'
// 获取财务报表列表
export function getFinancialReports(params) {
  return request({
    url: '/mobile/financial/reports',
    method: 'get',
    params
  })
}

// 创建财务报表
export function createFinancialReport(data) {
  return request({
    url: '/mobile/financial/reports',
    method: 'post',
    data
  })
}

// 更新财务报表
export function updateFinancialReport(id, data) {
  return request({
    url: `/mobile/financial/reports/${id}`,
    method: 'put',
    data
  })
}

// 删除财务报表
export function deleteFinancialReport(id) {
  return request({
    url: `/mobile/financial/reports/${id}`,
    method: 'delete'
  })
}

// 获取报表类型枚举
export function getReportTypes() {
  return request({
    url: '/mobile/financial/report-types',
    method: 'get'
  })
}